﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Globalization;

namespace ZLDC.Common
{
    public class C_getWeek
    {
        public C_getWeek()
        {
        }

        public static int getWeekNum(DateTime Day)
        {
            int li_weeknum = 0;
            GregorianCalendar gc = new GregorianCalendar();
            DateTime l_monthfirst = gc.ToDateTime(gc.GetYear(Day), gc.GetMonth(Day), 1, 0, 0, 0, 0);
            string as_monthfirstweekday = Convert.ToString(gc.GetDayOfWeek(l_monthfirst));
            return li_weeknum;
        }
    }
}
